﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TransTaskWithCompensation
{
	internal sealed class LogHelper
    {
        private LogHelper()
        {
        }

        public static void LogException(Exception ex)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(string.Empty);
            Console.WriteLine("Error Happened!");
            Console.WriteLine(ex.Message);
            Console.ForegroundColor = ConsoleColor.White;
        }

        public static void LogMessage(string message)
        {
            Console.WriteLine();
            Console.WriteLine(message);
        }

        public static void LogMessage(string message, ConsoleColor color)
        {
            Console.ForegroundColor = color;
            Console.WriteLine();
            Console.WriteLine(message);
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}
